<%@ page contentType="text/html; charset=utf8" language="java" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@taglib prefix="s" uri="/struts-tags"%>
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf8">
  <title>登录系统</title>
  <s:head/>
</head>
<body>
<%@include file="header.jsp"%>

<table width="100%" align="center" background="${pageContext.request.contextPath}/images/bodybg.jpg">
<tr>
<td>请输入用户名和密码来登录<br />
  <s:if test="tip!=null">
    <div class="error">
        <s:property value="tip"/>
    </div>
  </s:if>
  <s:actionerror cssClass="error"/>
  <div align="center">
  <s:form action="processLogin">
    <s:textfield name="user.userName" label="用户名"/>
    <s:textfield name="user.passWord" label="密码"/>
    <s:textfield name="vercode" label="验证码"/>
    <tr>
        <td colspan="2">
            <s:submit value="登录" theme="simple"/>
            <s:reset theme="simple" value="重填"/>
        </td>
    </tr>
  </s:form>
  </div>
  验证码：<img name="d" src="authImg">
</td>
</tr>
</table>
<%@include file="footer.jsp"%>
</body>
</html>
